<?php
class MessageType extends Zend_Db_Table_Abstract {
	
	const PRIVATE_MESSAGE = "PRIVATE_MESSAGE";
	
	protected $_primary = "id";
	protected $_name = "message_type";
	
	/**
	 * Find user message type by key.
	 * 
	 * @param $key type key
	 */
	public function findByKey($key) {
		$where = $this->select()->where("`key`=?", $key);
		return $this->fetchRow($where);
	}
}
?>